/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kmean;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;
import javax.swing.UIManager;

/**
 *
 * @author TerryBoward
 */
public class KMean {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {}
        jfMain frm=new jfMain();
        frm.setLocation(KMean.setFrameCenterScreen());
        frm.setVisible(true);
    }
    
    public static Point setFrameCenterScreen() {
        Point topleft = new Point();
        // Get the default toolkit
        Toolkit toolkit = Toolkit.getDefaultToolkit();

        // Get the current screen size
        Dimension scrnsize = toolkit.getScreenSize();
        topleft.x = scrnsize.width/2 - 400;
        topleft.y = scrnsize.height/2 - 300;
        return topleft;
    }
}
